package com.cheli.manager.client;

import com.cheli.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname ManagerClient
 * @Description manager服务远程调用
 * @Date 2021/5/19 23:44
 * @Created by cl
 */
@FeignClient("service-acl")
@Component
public interface RoleClient {
    @GetMapping("/admin/acl/role/{userId}/{role}")
    public R setRoleByUserId(@PathVariable String userId, @PathVariable String role);
}
